package com.left.tcc.score.controller;

import com.left.tcc.score.api.ScoreAccountApi;
import com.left.tcc.score.dto.ScoreAccountDTO;
import com.left.tcc.score.service.ScoreAccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 积分服务
 */
@Slf4j
@RestController
public class ScoreAccountController implements ScoreAccountApi {
    @Autowired
    private ScoreAccountService scoreAccountService;

    @Override
    public String decrease(ScoreAccountDTO obj) {
        log.debug("进入积分服务..........");
        this.scoreAccountService.decrease(obj);
        return "ok";
    }
}
